#include <iostream>
#define CPPHTTPLIB_OPENSSL_SUPPORT

#include "httplib.h"
int main() {
    std::cout << "Hello, World!" << std::endl;

    // HTTP
    httplib::Client cli("http://192.168.31.180");

// HTTPS

    auto res = cli.Get("/hello.html");
    res->status;
    res->body;

    std::cout << res->body << std::endl;

    httplib::Server svr;
    svr.Get("/hi", [](const httplib::Request &, httplib::Response &res) {
        res.set_content("Hello World!", "text/plain");
    });

    svr.listen("0.0.0.0", 8080);
    return 0;
}
